<template>
  <div>
    <el-row :gutter="10">
      <el-col :span="24">
        <div class="num">
          <el-card body-style="display: flex;padding: 0px;">
            <i class="el-icon-user-solid icon" style="background: skyblue"></i>
            <div class="detail">
              <p class="number">
                {{ studentlist.length }}
              </p>
              <p class="dec">用户总数</p>
            </div>
          </el-card>
          <el-card body-style="display: flex;padding: 0px;">
            <i class="el-icon-user-solid icon" style="background: pink"></i>  

            <div class="detail">
              <p class="number">
                {{ teacherlist.length }}
              </p>

              <p class="dec">热门景区个数</p>
            </div>
          </el-card>
          <el-card body-style="display: flex;padding: 0px;">
            <i class="el-icon-star-off icon" style="background: #67c23a"></i>

            <div class="detail">
              <p class="number">
                {{ departmentlist.length }}
              </p>
              <p class="dec">旅游攻略篇数</p>
            </div>
          </el-card>
          <el-card body-style="display: flex;padding: 0px;">
            <i class="el-icon-reading icon" style="background: #e6a23c"></i>  

            <div class="detail">
              <p class="number">
                {{ courselist.length }}
              </p>

              <p class="dec">旅游快讯篇数</p>
            </div>
          </el-card>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapGetters } from "vuex";

export default {
  name: "Dashboard",
  computed: {
    ...mapGetters(["name", "strategydata", "hotdata", "newdata"]),
  },
  mounted:{
    this.initdata;
  },
  methods:{
    initdata(){

    }
  }
};
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
